import { TOGGLE_CONFIG_DIALOG } from '../actions/configdialog';

export default function(state = { open: false }, action) {
  switch (action.type) {
    case TOGGLE_CONFIG_DIALOG:
      return {
        open: !state.open
      };

    default:
      return state;
  }
}
